package com.yvan.demo;

import com.yvan.platform.DsfConfigurableInitializer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;

@SpringBootApplication(exclude = {
        HibernateJpaAutoConfiguration.class
})
@EnableCaching
public class StartWeb1 {

    public static void main(String[] args) {
        DsfConfigurableInitializer initializer = new DsfConfigurableInitializer("demo_web1");

        initializer.addLogbackConfig("classpath:logback-shadow.xml");
        initializer.addLogbackConfig("file:./logback.xml");

        SpringApplication application = new SpringApplication(StartWeb1.class);
        application.addInitializers(initializer);
        application.run(args);
    }
}
